set spvoice = CreateObject("SAPI.SpVoice")
set spfilestream = CreateObject("SAPI.SpFileStream")
set args = Wscript.Arguments
wavfile = Replace(args(0),"/","\")
text = args(1)
Wscript.echo wavfile
spfilestream.open wavfile, 3
set spvoice.AudioOutputStream = spfilestream
spvoice.Speak text
spfilestream.close